import network from "../network"

// 添加新闻
function addNewsApi(option) {
    return network({
        url: "/news/add",
        method: "post",
        data: option.data
    })
}

// 获取新闻列表
function getNewsApi(option) {
    return network({
        url: "/news/",
        method: "get",
        params:option.params
    })
}


export {
    addNewsApi,
    getNewsApi,
}